<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="./index.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">



        <ui:define name="mainContent">
                <h:form>
                        <p:panel header="Dados Pessoais" >
                                <h:panelGrid columns="4" >
                                        <h:outputText value="Nome"/>  
                                        <p:inputText/> 
                                        <h:outputText value="Naturalidade"/>
                                        <p:inputText />                             
                                        <h:outputText value="Nacionalidade"/>
                                        <p:inputText />
                                        <h:outputText value="Registro Nasc."/>
                                        <p:inputText/>
                                        <h:outputText value="Data de Nasc."/>
                                        <p:inputMask mask="99/99/9999" />
                                        <h:outputText value="Pai:"/>
                                        <p:inputText/>
                                        <h:outputText value="Mãe:"/>
                                        <p:inputText/>
                                        <p:selectOneRadio></p:selectOneRadio>
                                </h:panelGrid>
                        </p:panel>

                        <p:panel header="Responsavel">

                                <h:outputText value="Nome"/>
                                <p:inputText />
                                <p:commandButton value="Buscar"/>
                                <br/>
                                <br/>
                                <h:panelGrid columns="4" >
                                        <h:outputText value="Telefone"/>
                                        <p:inputMask mask="(99) 9999-9999" />
                                        <h:outputText value="Profissão"/>
                                        <p:inputText />
                                        <h:outputText value="Parentesco"/>
                                        <p:inputText />
                                </h:panelGrid>

                        </p:panel>
                        <p:panel header="Endereço" >
                                <h:panelGrid columns="4" >
                                        <h:outputText value="Rua:"/>
                                        <p:inputText />
                                        <h:outputText value="Bairro"/>
                                        <p:inputText />
                                        <h:outputText value="Cidade"/>
                                        <p:inputText />
                                        <h:outputText value="Estado"/>
                                        <p:inputMask mask="aa"/>
                                </h:panelGrid>
                        </p:panel>

                        <p:panel header="Ingresso na Escola" >

                                <h:form prependId="false">

                                        <p:dataTable  value="Tabelas" paginator="true" rows="10">

                                                <p:column>
                                                        <f:facet name="header">
                                                                <h:outputText value="Ano" />
                                                        </f:facet>
                                                </p:column>

                                                <p:column>
                                                        <f:facet name="header">
                                                                <h:outputText value="Série" />
                                                        </f:facet>
                                                       
                                                </p:column>

                                                <p:column>
                                                        <f:facet name="header">
                                                                <h:outputText value="Data Nasc" />
                                                        </f:facet>
                                                        
                                                </p:column>

                                                <p:column>
                                                        <f:facet name="header">
                                                                <h:outputText value="Responsavel" />
                                                        </f:facet>
                                                    
                                                </p:column>

                                                <p:column style="width:32px">
                                                        <p:commandButton update="display" oncomplete="carDialog.show()"
                                                                         image="ui-icon ui-icon-search">
                                                                <f:setPropertyActionListener value="#{car}"
                                                                                             target="#{tableBean.selectedCar}" />
                                                        </p:commandButton>
                                                </p:column>

                                        </p:dataTable>

                                        <p:dialog header="Pesquisa" widgetVar="carDialog" resizable="false"
                                                  width="200" showEffect="explode" hideEffect="explode">

                                                <h:panelGrid id="display" columns="2" cellpadding="4">

                                                        <f:facet name="header">
                                                                <p:graphicImage value="/images/cars/#{tableBean.selectedCar.manufacturer}.jpg"/>
                                                        </f:facet>

                                                        <h:outputText value="Nome" /><br/>
                                                        <h:outputText value="Ano" /><br/>
                                                        <h:outputText value="Turma" />
                                                </h:panelGrid>
                                        </p:dialog>
                                </h:form>

                        </p:panel>


                        <div align="right">
                                <h:panelGrid columns="2" >
                                        <p:commandButton value="Salvar"/>
                                        <p:commandButton value="Cancelar" type="reset"/>
                                </h:panelGrid>
                        </div>

                </h:form>

        </ui:define>

        <ui:define name="block">

                <ins class="lbc"></ins>
                <ins class="rbc"></ins>
                <ul class="list1">
                        <li><a href="cadastroAluno.faces" >Cadastro aluno </a></li>

                </ul>
        </ui:define>
</ui:composition>








